package com.company;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @date : 2022/3/25 16:43
 */


@Configuration
@PropertySource("classpath:application.properties")
public class AppConfig {

    @Value("${my.name}")
    public String name;

    @Value("${my.age}")
    public String age;
}
